<!DOCTYPE html>
<#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
<#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
<html>
<head>
    <meta charset="utf-8">
    <title>课题评审会基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/forms/currencyCss.css">
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <style>
        .qbdms-TBinformation {
            margin-left: 0;
            font-size: 15px
        }
        .qbdms-TBinformationText{margin-left: 145px;}
        .qbdms-input-textarea{
            overflow:hidden;
        }

    </style>
    <#if isClose == 'true'>
    <style>
        .listBody .qbdms-bodyDiv{padding: 0 }
        body.qbdms-particulars .qbdms-bodyDiv div.layui-table-view-body{padding: 16px}
        .treeFormPreview{position: unset;padding: 0;padding-top: 12px}
    </style>
</#if>
</head>
<body class="listBody qbdms-particulars">
<div class="qbdms-bodyDiv">
    <div class="qbdms-backDiv">
        <div class="layui-table-view-body" style="padding: 0 24px 24px;">
            <#if isClose != 'true'> <div class="qbdms-formTitle" style="border-bottom: 1px solid #E5F0FF">课题评审会信息 <i class="qbdms-returnOn closeWindow">返回</i></div></#if>
            <form class="layui-form treeFormPreview" requrl="${ctx}/qbdms/wQbdTecTopicreview/get" lay-filter="wQbdTecTopicreviewDataForm">
                <div class="" style="width: 100%;overflow-x: auto">
                    <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                            <tr id="tbxx"></tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">密级<span style="color: red;">*</span></td>
                                <td colspan="5"><@secSelect.sec_select data_src=1 required=true name="secret"/></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">课题名称<span style="color: red;">*</span></td>
                                <td colspan="5" name="fTopicname"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">会议名称<span style="color: red;">*</span></td>
                                <td colspan="5" name="fMeetingname"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">会议时间<span style="color: red;">*</span></td>
                                <td colspan="5" name="fMeetingdate"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">会议地点<span style="color: red;">*</span></td>
                                <td colspan="5" name="fMeetingaddress"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">组织人<span style="color: red;">*</span></td>
                                <td colspan="5" name="fOrganizingman"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">参会单位</td>
                                <td colspan="5" name="fChdw"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">会务人员及联系方式</td>
                                <td colspan="5" name="fConferencepersonnel"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">会议通知</td>
                                <td colspan="5" name="fMeetingnotice"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">会议通知附件</td>
                                <td colspan="5"><div class="uploadFileList" fileUploadName="fMeetingnoticefile"></div></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">会议手册</td>
                                <td colspan="5" name="fMeetingmanual"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">会议手册附件</td>
                                <td colspan="5"><div class="uploadFileList" fileUploadName="fMeetingmanualfile"></div></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">会议纪要</td>
                                <td colspan="5" name="fMeetingsummary"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">会议纪要附件</td>
                                <td colspan="5"><div class="uploadFileList" fileUploadName="fMeetingsummaryfile"></div></td>
                            </tr>
                        </tbody>
                    </table>
                    <input type="hidden" placeholder="未填写" autocomplete="off" class="layui-input dateTimeFiled input-right time-init" name="fMeetingdate" format="yyyy-MM-dd" datetype="date" lay-verify="required" lay-reqtext="会议时间是必填项">
                </div>
                <#if isClose != 'true'>
                    <div class="layui-form-item btnformItem">
                        <p>
                            <button type="reset" id="closeWindow" class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回</button>
                        </p>
                    </div>
                </#if>
                <!--<div id="tbxx"></div>
                <div class="layui-row">
                    <div style="width: 60%">
                        <label class="layui-form-label qbdms-label" title="密级">密级<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@secSelect.sec_select data_src=1 required=true name="secret"/>
                        </div>
                    </div>
                    <div style="width: 60%">
                        <label class="layui-form-label qbdms-label" title="课题名称">课题名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="未填写" autocomplete="off" class="layui-input textInput" lay-verify="required" lay-reqtext="课题名称是必填项" name="fTopicname" maxlength="50" readonly>
                        </div>
                    </div>
                    <div style="width: 60%">
                        <label class="layui-form-label qbdms-label" title="会议名称">会议名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fMeetingname" placeholder="未填写" lay-verify="required" lay-reqtext="会议名称是必填项" autocomplete="off" class="layui-input" maxlength="100">
                        </div>
                    </div>
                    <div style="width: 60%">
                        <label class="layui-form-label qbdms-label" title="会议时间">会议时间<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="未填写" autocomplete="off" class="layui-input dateTimeFiled input-right time-init" name="fMeetingdate" format="yyyy-MM-dd" datetype="date" lay-verify="required" lay-reqtext="会议时间是必填项">
                        </div>
                    </div>
                    <div style="width: 60%">
                        <label class="layui-form-label qbdms-label" title="会议地点">会议地点<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fMeetingaddress" placeholder="未填写" lay-verify="required" lay-reqtext="会议地点是必填项" autocomplete="off" class="layui-input" maxlength="200">
                        </div>
                    </div>
                    <div style="width: 60%">
                        <label class="layui-form-label qbdms-label" title="组织人">组织人<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fOrganizingman" placeholder="未填写" lay-verify="required" lay-reqtext="组织人是必填项" autocomplete="off" class="layui-input" maxlength="100">
                        </div>
                    </div>
                    <div style="width: 76%">
                        <label class="layui-form-label qbdms-label" title="参会单位">参会单位</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="未填写" name="fChdw" maxlength="200" style="min-height:64px;padding-top: 5px"></textarea>
                        </div>
                    </div>
                    <div style="width: 76%">
                        <label class="layui-form-label qbdms-label" title="会务人员及联系方式">会务人员及联系方式</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="未填写" name="fConferencepersonnel" maxlength="200" style="min-height:64px;padding-top: 5px"></textarea>
                        </div>
                    </div>
                    <div style="width: 76%">
                        <label class="layui-form-label qbdms-label" title="会议通知">会议通知</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="未填写" name="fMeetingnotice" maxlength="200" style="min-height:64px;padding-top: 5px"></textarea>
                        </div>
                    </div>
                    <div>
                        <label class="layui-form-label qbdms-label" title="会议通知附件">会议通知附件</label>
                        <div class="layui-input-block qbdms-input qbdms-input-textarea">
                            <div class="uploadFileCont">
                                <button type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp">上传附件</button>
                                <i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc docx pdf，文件大小限制不超过100M</i>
                                <input type="text" id="fMeetingnoticefile" class="uploadInput" name="fMeetingnoticefile" style="display: none">
                                <div class="uploadFileList" fileUploadName="fMeetingnoticefile"></div>
                            </div>
                        </div>
                    </div>
                    <div style="width: 76%">
                        <label class="layui-form-label qbdms-label" title="会议手册">会议手册</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="未填写" name="fMeetingmanual" maxlength="200" style="min-height:64px;padding-top: 5px"></textarea>
                        </div>
                    </div>
                    <div>
                        <label class="layui-form-label qbdms-label" title="会议手册附件">会议手册附件</label>
                        <div class="layui-input-block qbdms-input qbdms-input-textarea">
                            <div class="uploadFileCont">
                                <button type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp">上传附件</button>
                                <i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc docx pdf，文件大小限制不超过100M</i>
                                <input type="text" id="fMeetingmanualfile" class="uploadInput" name="fMeetingmanualfile" style="display: none">
                                <div class="uploadFileList" fileUploadName="fMeetingmanualfile"></div>
                            </div>
                        </div>
                    </div>
                    <div style="width: 76%">
                        <label class="layui-form-label qbdms-label" title="会议纪要">会议纪要</label>
                        <div class="layui-input-block qbdms-input">
                            <textarea rows="2" class="layui-textarea" placeholder="未填写" name="fMeetingsummary" maxlength="200" style="min-height:64px;padding-top: 5px"></textarea>
                        </div>
                    </div>
                    <div>
                        <label class="layui-form-label qbdms-label" title="会议纪要附件">会议纪要附件</label>
                        <div class="layui-input-block qbdms-input qbdms-input-textarea">
                            <div class="uploadFileCont">
                                <button type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp">上传附件</button>
                                <i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc docx pdf，文件大小限制不超过100M</i>
                                <input type="text" id="fMeetingsummaryfile" class="uploadInput" name="fMeetingsummaryfile" style="display: none">
                                <div class="uploadFileList" fileUploadName="fMeetingsummaryfile"></div>
                            </div>
                        </div>
                    </div>
                </div>-->
            </form>
        </div>
    </div>
</div>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'setter', 'form', 'layer', 'upload', 'common', 'propsHandle', 'laydate', 'jquery', 'publicMethods', 'commonDialog'], function () {
        var laydate = layui.laydate;
        var common = layui.common;
        var $ = layui.jquery;
        var upload = layui.upload;
        var setter = layui.setter;
        var form = layui.form;
        var propsHandle = layui.propsHandle;
        var publicMethods = layui.publicMethods;
        var commonDialog = layui.commonDialog;
        var defProps = {
            //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
            viewMould: 'moulds/', // 组件模块 存放文件 *****
            selectorBtn: '.selectorBtn'
        };
        var temQuery = new propsHandle();
        // 初始化模板功能
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
        var dateTimeFiledLen = $(".dateTimeFiled");
        for (var i = 0; i < dateTimeFiledLen.length; i++) {
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                , type: 'date'
                , trigger: 'click'
            });
        }

        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            if((null != "${mark}" && "${mark}" === "review" && "${mark}" !== undefined)){
                var close = parent.document.getElementsByClassName("layui-layer-close");
                close[1].click();
                return;
            }
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdTecTopicreview/view/list';
        });
        //下载附件
        window.downFile = function (obj) {
            var fileId = $(obj).parents("span").attr("fileId");
            window.location.href = serverPath.qbdmsPath + setter.extendLinkPath + "attachFile/download?fileId=" + fileId;
        }

        common.updateForm({
            name: 'wQbdTecTopicreviewDataForm',
            idValue: "${id}",
            primary: "id",
            getCallback: function (data) {
                $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</td>");
                // $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
                //-修改页面 初始化附件组件 开始 ------------------------------------------
                $('.uploadFileList').each(function () {
                    var fileUploadName = $(this).attr("fileUploadName");
                    var jsonFile = data.data[fileUploadName];
                    var files = eval(jsonFile);

                    if (files) {
                        for (var i = 0; i < files.length; i++) {
                            var fileLevel = files[i].fileLevel;
                            var fileLevelText = files[i].fileLevelText;
                            var fileSec = '<div class="fileSecLevel fileSecXg layui-input-inline">' + '<@secSelect.sec_select data_src=1 hasBlank=false/>' + "</div>";
                            var newStr = '<span class="file-id" style="margin-right: 20px;" fileId=' + files[i].fileId + ' fileLevelText="' + fileLevelText + '">' + fileSec + '<span class="file-name" title="点击下载文件" onclick="downFile(this)"><i class="iconfont" style="margin-right: 5px"></i>' + files[i].fileName + '</span></span>';
                            $(this).html(newStr);
                            $(this).find("select:last").val(fileLevel);
                            $(this).find("select:last").attr("disabled", "disabled");
                        }
                    } else {
                        $(this).html("<span style='color: #c0c4cc'>未上传</span>");
                    }
                });
                //-修改页面 初始化附件组件 结束 ------------------------------------------
            }
        });

        //下载附件
        window.downFile = function (obj) {
            var fileId = $(obj).parents("span").attr("fileId");
            window.location.href = serverPath.qbdmsPath + setter.extendLinkPath + "attachFile/download?fileId=" + fileId;
        }

        publicMethods.bottomFixd()
        $("body *").not("#closeWindow").attr("disabled", "disabled");
        /*$(".uploadFileCont .qbdms-fileUp,.uploadFileCont i,.addFormTr1").hide();
        $(".uploadFileCont").each(function () {
            if ($(this).children('.uploadFileList').children().length == 0) {
                $(this).children('.uploadFileList').append("<span style='color: #C0C4CC'>未上传</span>")
            }
        })*/
    });
</script>
</body>
</html>